package Solucion;

public class Panagrama {

	public static boolean isPanagrama(String frase) {
		if (frase == null || frase.length() < 27) return false;
		
		String alfabeto = "abcdefghijklmnopqrstuvwqyz";
		frase = frase.toLowerCase();
		
		for ( int i=0; i<frase.length(); i++ ){
			alfabeto = (alfabeto.contains(frase.substring(i, i+1))) ? alfabeto.replaceAll(frase.substring(i, i+1), "") : alfabeto;
		}		
		return alfabeto.length()==0;		
	}
}
